﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="VideoDisplay.aspx.cs" Inherits="Face.Web.VideoPage.VideoDisplay" %>

<!DOCTYPE html>
<html lang="en">
<head id="Head1" runat="server">
    <meta charset="utf-8" />
    <title>Video by FG</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="description" content="" />
    <meta name="author" content="" />
    <script>
        thisURL = document.URL;
        thisHREF = document.location.href;
        thisSLoc = self.location.href;
        thisDLoc = document.location;
    </script>
    <link href="/css/bootstrap.min.css" rel="stylesheet" media="screen" />
    <style type="text/css">
        body
        {
            padding-bottom: 40px;
        }
        p
        {
            margin-top: 1px;
            margin-bottom: 1px;
        }
    </style>
    <link href="/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen" />
    <link href="/css/videoPage.css" rel="stylesheet" media="screen" />
    <script src="/js/jquery-2.0.0.min.js" type="text/javascript"></script>
    <script src="/js/bootstrap.min.js" type="text/javascript"></script>
    <script src="/js/jwplayer.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <%--这是顶上的导航栏--%>
    <div class="row">
        <div class="span12">
            <div class="row">
                <div class="span3 offset1">
                    <p>
                        <a href="../index.aspx">
                            <img src="/img/logo.png" alt="GatherContent logo"></a></p>
                </div>
                <div class="span2 pull-right">
                    &nbsp
                    <div class="span3">
                        <div class="row">
                            <div class="span1">
                                <a href="/index.aspx" class=""><span style="color: Gray; font-size: small">主页</span></a>
                            </div>
                            <%if (Session["user"] == null)
                              {%>
                            <div class="span1">
                                <a href="/login_and_signup/signup.aspx">现在就注册</a>
                            </div>
                            <div class="span1">
                                <a href="/login_and_signup/login.aspx" class="btn btn-inverse btn-mini">登录</a>
                            </div>
                            <%
                                }
                              else
                              {%>
                            <div class="btn-group">
                                <a class="btn btn-mini dropdown-toggle ajax-dropdown-toggle" data-toggle="dropdown"
                                    href="#"><span>
                                        <%=Session["user"].ToString()%></span> <span class="caret"></span></a>
                                <ul class="dropdown-menu pull-right">
                                    <li>
                                        <asp:LinkButton ID="LinkButton1" CssClass="item" runat="server" OnClick="btn_logout">Logout</asp:LinkButton></li>
                                </ul>
                            </div>
                            <%} %>
                        </div>
                    </div>
                </div>
                &nbsp
            </div>
        </div>
    </div>
    </div>
    <div class="navbar navbar-inverse">
        <div class="navbar-inner">
            <div class="container">
                <div class="row">
                    <div class="span10 offset1">
                        <ul class="nav">
                            <li class=""><a href="/Pic_and_article/picture.aspx"><i class="icon-camera icon-white section-icon">
                            </i>图片</a> </li>
                            <li class=""><a href="/Pic_and_article/articalList.aspx" class="overview"><i class="icon-pencil icon-white section-icon">
                            </i>文章</a> </li>
                            <li class="active"><a href="/VideoPage/VideoHome.aspx"><i class="icon-folder-open icon-white section-icon">
                            </i>视频</a> </li>
                            <% if (Session["user"] != null)
                               { %>
                            <li class=""><a href="../Message/MessageReceive.aspx"><i class="icon-edit icon-white section-icon">
                            </i>消息管理</a> </li>
                            <li class=""><a href="../VideoPage/MyVideoAlbumsManage.aspx"><i class="icon-play-circle icon-white section-icon">
                            </i>我的视频发布</a> </li>
                            <li class=""><a href="../xwbemo1/UserInfoEdit.aspx"><i class="icon-edit icon-white section-icon">
                            </i>我的用户信息</a> </li>
                            <% } %>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <%--/这是顶上的导航栏--%>
    <div class="container">
        <!-- Main hero unit for a primary marketing message or call
    to action -->
        <div class="row">
            <div class="span8">
                <div class="row">
                    <h2>
                        <%=VideoTitle
                        %></h2>
                </div>
                <div class="hero-unit">
                    <div class="row">
                        <div class="span6" style="height: 400px">
                            <object type="application/x-shockwave-flash" width="100%" height="100%" wmode="transparent"
                                data="/js/player.swf?file=<%=VideoFileURL %>">
                                <param name="movie" value="/js/player.swf?file=<%=VideoFileURL %>" />
                                <param name="wmode" value="transparent" />
                                <param name="autostart" value="false" />
                            </object>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="well well-small span6 offset1">
                        <div class="btn-group">
                            <button class="btn" onclick="add">
                                <img src="../img/up.png" />顶<%=LikeNum %></button>
                            <button class="btn">
                                <img src="../img/down.png" />踩<%=DislikeNum %></button>
                        </div>
                    </div>
                </div>
                <p>
                    &nbsp</p>
            </div>
            <div class="span4">
                <div class="row">
                    <div class="well
    well-small">
                        <span class="videoNormalType">视频信息</span>
                    </div>
                </div>
                <div class="row">
                    <div class="span2">
                        <p>
                        </p>
                        <p>
                            <img class="img-rounded" alt="" src="<%=VideoImgURL
    %>" /></p>
                    </div>
                    <div class="span2">
                        <p>
                        </p>
                        <p>
                            <span class="videoInfo">视频标题：<%=VideoTitle
                            %></span></p>
                        <p>
                            <span class="videoInfo">创建者：<%=VideoOwner%></span></p>
                        <p>
                            <span class="videoInfo">播放数：<%=VideoPlayTime%></span></p>
                        <p>
                            <span class="videoInfo">上传时间：<%=VideoUploadTime%></span></p>
                    </div>
                </div>
                <div class="row">
                    <div class="span4">
                        <p>
                            <span class="videoInfo">
                                <%=VideoAbstract %></span></p>
                    </div>
                </div>
                <div class="row">
                    <div class="well
    well-small">
                        <span class="videoNormalType">专辑信息</span>
                    </div>
                </div>
                <div class="row">
                    <div class="span2">
                        <p>
                        </p>
                        <p>
                            <a href="/VideoPage/MyVideosManage.aspx?AlbumID=<%=ThisAlbumID %>">
                                <img class="img-rounded" alt="" src="<%=AlbumImg %>" /></a></p>
                    </div>
                    <div class="span2">
                        <p>
                        </p>
                        <p>
                            <a href="/VideoPage/OthersVideos.aspx"><span class="videoInfo">专辑名：<%=AlbumName %></span></a></p>
                        <p>
                            <span class="videoInfo">创建者：<%=AlbumOwner %></span></p>
                        <p>
                            <span class="videoInfo">最近更新：<%=AlbumUpdateTime%></span></p>
                    </div>
                </div>
            </div>
        </div>
        <!-- Example row of columns -->
        <div class="row">
            <div class="span8">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <div class="row">
                            <div class="span1">
                                <% if (replyUserName != null && replyUserName
    != "")
                                   { %>
                                <p>
                                    回复</p>
                                <p>
                                    <%=replyUserName %></p>
                                <p>
                                    <asp:LinkButton ID="btn_DeleteReply" runat="server" OnClick="btn_DeleteReplyName"> 删除</asp:LinkButton><%} %></p>
                            </div>
                            <div class="span5">
                                <textarea runat="server" rows="4" id="tb_Message" class="span5" placeholder="想说些什么 呢？"></textarea>
                            </div>
                            <div class="span2 pull-right">
                                <asp:Button ID="btn_SendMessage" runat="server" CssClass="btn" Text="发表评论" OnClick="btn_SendMessage_Click" />
                            </div>
                        </div>
                        <asp:Repeater ID="Message_info" runat="server" OnItemCommand="rpt_Message_ItemCommand">
                            <HeaderTemplate>
                                <table class="table table-bordered">
                                    <tr>
                                        <td>
                                            最新评论
                                        </td>
                                    </tr>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr>
                                    <td>
                                        <p>
                                            <span class="videoUsername">用户名：<%#Eval("username")%>
                                                <%# Eval("reply_id") == null ? "" : " &nbsp &nbsp &nbsp &nbsp 回复： " + Eval("reply_username")%>
                                            </span>
                                        </p>
                                        <p>
                                            <%# Eval("message_content")%></p>
                                        <p class="text-right">
                                            <%# Eval("message_time")
                                            %>&nbsp &nbsp &nbsp &nbsp
                                            <asp:LinkButton ID="btn_Delete" runat="server" CommandName="btn_DeleteMessage" CommandArgument='<%# Eval("message_ID") %>'>删除</asp:LinkButton>
                                            &nbsp &nbsp &nbsp &nbsp
                                            <asp:LinkButton ID="btn_Reply" runat="server" CommandName="btn_ReplyMessage" CommandArgument='<%# Eval("message_ID") %>'>回复</asp:LinkButton>
                                        </p>
                                    </td>
                                </tr>
                            </ItemTemplate>
                            <FooterTemplate>
                                </table>
                            </FooterTemplate>
                        </asp:Repeater>
                        <p>
                        </p>
                        <div class="pagination pull-right">
                            <ul>
                                <li>
                                    <asp:LinkButton ID="LastPage" runat="server" OnClick="LastPageClick">上一页 </asp:LinkButton></li>
                                <%--<li><asp:LinkButton
    ID="LinkButton1" runat="server">1</asp:LinkButton></li> <li><a href="#">2</a></li>
    <li><a href="#">3</a></li> <li><a href="#">4</a></li> <li><a href="#">5</a></li>
    <li><a href="#">6</a></li> <li><a href="#">7</a></li> <li><a href="#">8</a></li>
    <li><a href="#">9</a></li> <li><a href="#">10</a></li>--%>
                                <li>
                                    <asp:LinkButton ID="NextPage" runat="server" OnClick="NextPageClick">下一页 </asp:LinkButton></li>
                            </ul>
                        </div>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
            <p>
            </p>
            <div class="span4">
                <div class="row">
                    <div class="well well-small">
                        <span class="videoNormalType">专辑内其他视频</span>
                    </div>
                </div>
                <%-- 以下内容使用自动循环的方式展示 相关视频 信息--%>
                <div class="row">
                    <asp:Repeater ID="VideosInAlbum" runat="server" OnItemCommand="rpt_Videos_ItemCommand">
                        <ItemTemplate>
                            <div class="span2">
                                <p>
                                    <a href="/VideoPage/VideoDisplay.aspx?VideoID=<%# Eval("video_id") %>">
                                        <img class="img-rounded" alt="" src="<%# Eval("video_img") %>" /></a></p>
                                <p>
                                    <a href="/VideoPage/VideoDisplay.aspx?VideoID=<%#
    Eval("video_id") %>"><span class="videoTitle">
        <%# Eval("video_name") %></span></a></p>
                                <p>
                                    <a href="/VideoPage/VideoDisplay.aspx?VideoID=<%# Eval("video_id") %>"><span class="videoHot">
                                        视频点播数：<%# Eval("play_num") %></span></a></p>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                    <%-- /以上内容使用自动循环的方式展示 相关视频 信息--%>
                </div>
            </div>
            <hr />
        </div>
        <footer>
    <p>&copy; Company 2013</p> </footer>
        <!-- /container -->
    </form>
</body>
</html>
